using System;
using System.Collections.Generic;
using System.Text;

namespace Acms.DataControls
{
    [System.ComponentModel.Designer(typeof(SearchTermDataSourceDesigner))]
    [System.Web.UI.ToolboxData("<{0}:SearchTermDataSource runat=server/>")]
    public class SearchTermDataSource : GenericDataSource<Bll.SearchTerm>
    {
    }

    public class SearchTermDataSourceDesigner : GenericDataSourceDesigner<Bll.SearchTerm>
    {
        protected override Acms.Bll.SearchTerm GetDesignTimeItem(int index)
        {
            Random rnd = new Random(index);
            string[] names = new string[] { "Home", "My Photos", "Section 1", "User Details", "Issue 1" };
            Bll.SearchTerm tmp = Acms.Bll.SearchTerm.CreateInstance(index, names[rnd.Next(0, names.Length)]);
            return tmp;
        }
    }
}
